package com.naiterui.ehp.bs.emr.vo;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.naiterui.ehp.bp.utils.date.DateUtil;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 病历作废信息
 *
 * @author wangzehao
 * @date 2018/10/23 9:20 PM
 * @since 1.0.0
 */
@ApiModel(value = "病历作废信息", description = "病历作废信息")
public class DrCaseInvalidVO implements java.io.Serializable {
    private static final long serialVersionUID = -5555731527202441608L;
    /**
     * 病历ID
     */
    @ApiModelProperty(value = "病历ID")
    private String recordId;
    /**
     * 病历失效状态 0：正常 1：删除
     */
    @ApiModelProperty(value = "病历失效状态 0：正常 1：删除")
    private Integer invalid;
    /**
     * 病历失效时间
     */
    @JsonFormat(pattern = DateUtil.DATE_TIME)
    @ApiModelProperty(value = "病历失效时间")
    private Date invalidTime;

    public DrCaseInvalidVO(String recordId, Integer invalid, Date invalidTime) {
        this.recordId = recordId;
        this.invalid = invalid;
        this.invalidTime = invalidTime;
    }

    public String getRecordId() {
        return this.recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public Integer getInvalid() {
        return this.invalid;
    }

    public void setInvalid(Integer invalid) {
        this.invalid = invalid;
    }

    public Date getInvalidTime() {
        return this.invalidTime;
    }

    public void setInvalidTime(Date invalidTime) {
        this.invalidTime = invalidTime;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
